package com.dataaccess.dataaccess.model;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.dataaccess.dataaccess.common.base.BasisEntity;

//@Data
@TableName("alarmRecord")//报警时间记录
public class AlarmRecord extends BasisEntity {

    private String number;//设备号
    private String time;//上次报警时间
    private String type;//报警类型code或中文
    @Version
    private Integer version;

    public String getNumber() {
        return this.getString("number");
    }

    public void setNumber(String number) {
        this.put("number",number);
    }

    public String getTime() {
        return this.getString("time");
    }

    public void setTime(String time) {
        this.put("time",time);
    }

    public String getType() {
        return this.getString("type");
    }

    public void setType(String type) {
        this.put("type",type);
    }

    public Integer getVersion() {
        return this.getInteger("version");
    }

    public void setVersion(Integer version) {
        this.put("version",version);
    }
}
